<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=factory::getCfg('project')?> - 管理后台 <?PHP if(isset($nav)) echo ' - '.$nav; ?></title>
<link rel="stylesheet" type="text/css" href="/misc/css/base.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/btnicon.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/reset_admin.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/adminmenu.css"  />
<link rel="stylesheet" type="text/css" href="/misc/css/newadmin.css"  />
<script type="text/javascript" src="/misc/vendors/jquery/jquery_1.2.6.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js.js"></script>
<script type="text/javascript" src="/misc/vendors/o2js/o2js_build.js"></script>
<script type="text/javascript" >
var baseUrl = "<?=$themeUrl?>";
$().ready(function(){



});
var grids;
</script>
</head>
<body class="mainbg" style="background-color:#BDBFCB"> 
<table class="maintable">
	<tbody>
		<tr>
			<td style="text-align:left">
				
				<div class="logodiv">
					<a href="{url::build('admin','index')}" style="float:left"><img src="/misc/images/adminmenu/logo.jpg" /></a>
					<div class="logodiv_r" id="top_link"  >
						<span style="color: #FF6600; font-weight: bold;"> {factory::module('admin')->getname()} ，欢迎进入管理后台！</span> |
						<a href="<?php echo url::build('admin','index')?>"  >管理首页</a> | 
						<a href="<?php echo url::build('admin','pwd')?>"  >密码修改</a> | 
						<a href="<?php echo url::build('login','adminlogout')?>" >安全退出</a> 
					</div> 
				</div> 
			</td>
		</tr>
		<tr>
			<td style="text-align:left;height:77px;vertical-align:top">
				<div style="position:relative">
					<div class="nav_1">
						<ul class="nav_1_bg">
							<li><img src="/misc/images/adminmenu/nav_1_left.gif"></li>
							<li class="menues">
							<ul id="topmenues">
								<li class="menuusel" id="mainmenu_1"><a id="_1" target="_self" href="javascript:void(0)"><span>系统</span></a></li>
								<li class="line1"></li>
								<li class="menuusel " id="mainmenu_2"><a id="_2" target="_self" href="javascript:void(0)"><span>会员</span></a></li>
								<li class="line1"></li>
								<li class="menuusel" id="mainmenu_3"><a id="_3" target="_self" href="javascript:void(0)"><span>乐园卡计划</span></a></li>
								<li class="line1"></li>
								<li class="menuusel" id="mainmenu_4"><a id="_4" target="_self" href="javascript:void(0)"><span>田园卡计划</span></a></li>
								<li class="line1"></li>
								<li class="menuusel" id="mainmenu_5"><a id="_5" target="_self" href="javascript:void(0)"><span>电子账户</span></a></li> 
								<li class="line1"></li>
								<li class="menuusel" id="mainmenu_6"><a id="_6" target="_self" href="javascript:void(0)"><span>信息</span></a></li> 
								<li class="line1"></li>
								<li class="menuusel" id="mainmenu_7"><a id="_7" target="_self" href="javascript:void(0)"><span>溯源</span></a></li> 
								<li class="line1"></li>
								<li class="menuusel " id="mainmenu_8"><a id="_8" target="_self" href="javascript:void(0)"><span>报表</span></a></li>
							</ul>
							</li>
							<li><img src="/misc/images/adminmenu/nav_1_right.gif"></li>
						</ul>
					</div>
				</div>
				<div style="position:relative;margin:0px;padding:0px;">
					
					<div class="nav_2">
						<ul class="nav_2_bg">
							<li><img src="/misc/images/adminmenu/nav_all_left.gif"></li>
							<li class="li_menu_blank">&nbsp;</li>
							<li id="menunav" class="menu_2">  
								<ul style="display:none;" id="submenu_ul_1">
									<li ><a href="{url::build('admin','index')}"  ><span>管理首页</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin','users')}"  ><span>后台用户</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin','authgroup')}"  ><span>权限组</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_pen','index')}" ><span>信息维护</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_page','index')}" ><span>单页信息管理</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_wrapper','index')}" ><span>首页轮播图维护</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_hezuo','index')}" ><span>合作伙伴维护</span></a></li>
								</ul>
								<ul style="display:none;" id="submenu_ul_2">
									<li ><a href="{url::build('admin_user','index')}" ><span>会员列表</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_user','add')}" ><span>添加会员</span></a></li>
								</ul> 
								<ul style="display:none;" id="submenu_ul_3">
									<li ><a href="{url::build('admin_sendpi','index')}" ><span>配送计划</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_sc','index')}" ><span>订单生产</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_wc','index')}" ><span>订单配送</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_send','index')}" ><span>配送计划明细</span></a></li> 
								</ul>
								<ul style="display:none;" id="submenu_ul_4">
									<li ><a href="{url::build('admin_combo','gd')}" ><span>套餐计划</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_order','index_sh')}" ><span>订单审核</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_order','index_make')}" ><span>订单生产</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_order','index_send')}" ><span>订单配送</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_order','index_cancel')}" ><span>订单取消</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_order','add')}" ><span>新增订单</span></a></li>
								</ul>
								<ul style="display:none;" id="submenu_ul_5">
									<li ><a href="{url::build('admin_trans','index')}" ><span>账户事务</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_point','index')}" ><span>积分事务</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_webpay','index')}" ><span>在线充值事务</span></a></li>
								</ul>
								<ul style="display:none;" id="submenu_ul_6">
									<li ><a href="{url::build('admin_vege','index')}"  ><span>菜品基础</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_ku','index')}" ><span>菜品库存</span></a></li> 
									<li class="line2"></li>
									<li ><a href="{url::build('admin_deliver','index')}"  ><span>配送方式</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_list','index')}"  ><span>会员静态字典</span></a></li>
									<li class="line2"></li>
									<li ><a href="{url::build('admin_field','index')}"  ><span>溯源基础配置</span></a></li>
								</ul>
								<ul style="display:none;" id="submenu_ul_7">
									<li ><a href="{url::build('admin_source_pro','index')}" ><span>供应溯源</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_source_make','index')}" ><span>生产溯源</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_source_send','index')}" ><span>配送溯源</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_source_search','index')}" ><span>溯源查询</span></a></li>
									<li class="line2"></li> 
									<li ><a href="{url::build('admin_source_log','index')}" ><span>溯源日志</span></a></li>
								</ul>
								<ul style="display:none;" id="submenu_ul_8">
									<li ><a href="{url::build('admin_report','index')}" ><span>报表中心</span></a></li>
								</ul>
								 
							</li>
							<li style="position: absolute; right: 0px;"><img src="/misc/images/adminmenu/nav_all_right.gif"></li>
						</ul>
					</div>	
<script type="text/javascript">
(function($){
	var menuid1="{$menuid1}";
	var menuid2="<?PHP if(!isset($menuid2)) echo ""; else echo $menuid2; ?>";
	$().ready( function() {
		var mainLink = $('#topmenues a');
		$('#topmenues a').mouseover( function() {
			for (i = 0; i < mainLink.length; i++) {
				$('#mainmenu' + mainLink[i].id).attr('class', 'menuusel');
				$('#submenu_ul' + mainLink[i].id).css('display', 'none');
			}
			$('#mainmenu' + this.id).attr('class', 'menusel');
			$('#submenu_ul' + this.id).css('display', '');
		});
		$('#topmenues a').click(function (){
			doms = $('#submenu_ul' + this.id + ' a');  
			jumpTo(doms[0].href);
			return false;
		});
		$('#main').mouseover(function (){
			setDefaultMenu();
		});
		setDefaultMenu();	
	});
	function setDefaultMenu(){
		var mainLink = $('#topmenues a');
		try {
			if(menuid1 == ''){
				menuid1 = '1';
			}	
			id = '_'+menuid1;
			if (id.length > 0 && $('#mainmenu' + id).length > 0) {
				for (i = 0; i < mainLink.length; i++) {
					$('#mainmenu' + mainLink[i].id).attr('class', 'menuusel');
					$('#submenu_ul' + mainLink[i].id).css('display', 'none');
				}
				$('#mainmenu' + id).attr('class', 'menusel');
				$('#submenu_ul' + id).css('display', ''); 
			}
			
			//二级菜单
			var menu_ii = 1;
			$('ul#submenu_ul_'+menuid1+' a').each(function(){
				if(menu_ii == menuid2){
					$(this).addClass('on');
				}
				menu_ii++;
			});
			
		} catch (e) {
		}
	} 
})(jQuery);
</script>
					
				</div>
			</td>
		</tr>	
		<tr height="20" align="center" style="overflow: hidden;">
			<td valign="bottom"><img src="/misc/images/adminmenu/maintop.gif" /></td>
		</tr>
		<tr>
			<td valign="top" class="maintd">
				<div id="main" style="position:relative;margin:5px 10px;"> 
					<!--<div class="titlebar"><span class="word"> </span></div>-->